package com.xcl.service.impl;

import com.xcl.pojo.Article;
import com.xcl.service.ArticleService;
import com.xcl.mapper.ArticleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author CSNF
* @description 针对表【article(文章表)】的数据库操作Service实现
* @createDate 2025-04-22 11:17:37
*/
@Service
public class ArticleServiceImpl implements ArticleService{

    @Autowired
    ArticleMapper articleMapper;

    @Override
    public List<Article> findArticle(Integer categoryId, String state) {
        return articleMapper.findArticle(categoryId, state);
    }

    @Override
    public Integer addArticle(Article article) {
        return articleMapper.addArticle(article);
    }

    @Override
    public Integer updateArticle(Article article) {
        return articleMapper.updateArticle(article);
    }
}




